home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 8145 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: news.polymtl.ca!hagen!itge31
  2. From: itge31@vlsi.polymtl.ca ()
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Undergraduate Project (collaborative drawing program), Need help!
  5. Date: 15 Feb 1996 03:05:15 GMT
  6. Organization: Ecole Polytechnique de Montreal
  7. Message-ID: <4fu7tb$rsk@service.polymtl.ca>
  8. References: <4f8iql$1gh@s02.pavilion.co.uk>
  9. NNTP-Posting-Host: hagen.vlsi.polymtl.ca
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Gary Miller (gmiller@pavilion.co.uk) wrote:
  13. : For my final year degree project I am currently trying to write a paint box 
  14. : application that will allow multiple users to edit the same drawing across a 
  15. : network.
  16.  
  17. ...
  18.  
  19. : I have source code for a paintbox application which I am trying to modify. As 
  20. : a start I am trying to setup two PC's with a serial link for demo purposes. I 
  21. : think I have written a class that will write data to the serial port (It 
  22. : compiles but I don't know if it works yet !). I seem to be having trouble 
  23. : reading data from one class member function to another.
  24.  
  25. : Each drawing stroke with the mouse is stored as an array of coordinates which 
  26. : are joined. I want to send these coordinates to another machine via a serial 
  27. : link and rebuild the drawing stroke on that machine as the user draws the 
  28. : stroke. Has anyone any ideas? is this the best way to go about it? someone 
  29. : mentioned OLE to me but I don't know too much about this.
  30.  
  31. A serial port connection is quite a basic network, if I might ;-).  However, what
  32. you are attempting to do is well suited to a concept called "replicated objects".
  33. So what you should be checking out for is a replication framework.  For example,
  34. take a look at the replication framework in SOM/DSOM.  (For more info, do an
  35. exact word search on "DSOM" on Yahoo).  If you can't use DSOM in your
  36. application, you'll at least get the concept behind replication. 
  37.  
  38. : Any help would be gratefully received
  39.  
  40. If you need any more help, e-mail me and I'll see what I can do...
  41.  
  42. : Gary
  43.  
  44. Mario Cormier
  45. cormier@info.polymtl.ca
  46.  
  47.